# test 4 nodes of cpu+GPUs
# openMP compile 2 threads
gcc test-4cpu.c -fopenmp -o test
# mpirun 4 ranks and 2 threads per rank
#mpirun -np 12 --oversubscribe sst gpsimIF-ariel-4cpu.py --model-options="-c ariel_group.cfg" | tee run.log

#mpirun -hostfile hostfile -np 8 sst design.py --model-options="-j design.json -c selfcfg.cfg"

mpirun -np 12 --oversubscribe sst gpsimIF-ariel-hier.py --model-options="-c ariel_group.cfg" |tee l3run.log

#test 2 nodes of cpu+GPUs
#gcc -static test-cpu.c -o test
#mpirun -np 2 sst gpsimIF-ariel-2cpu.py --model-options="-c ariel.cfg"

grep "simulated time" run.log | awk -F " " '{print $6}' > runtime.log

#gdb --args sst gpsimIF-ariel.py --model-options="-c ariel.cfg"
#gdbserver :9988  sst gpsimIF-ariel.py --model-options=\"-c ariel.cfg\"
#sst gpsimIF-ariel.py --model-options="-c ariel.cfg" | tee run.log
#sst gpsimIF-ariel_l1.py --model-options="-c ariel.cfg"
#sst gpsimIF-ariel_2gpu.py --model-options="-c ariel.cfg"
#sst gpsimIF-ariel-2cores.py --model-options="-c ariel.cfg" | tee run.log
